
add_definitions(-DCM_DLL_EXPORT)
add_definitions(-D_USE_MATH_DEFINES)

set (
	CM_SOURCES
	cmexport.h
	)

set (
	CM_PHYSICS_SOURCES
	physics/motionstate.cpp
	physics/motionstate.h
	physics/physicsworld.cpp
	physics/physicsworld.h
	physics/physicsshapegenerator.cpp
	physics/physicsshapegenerator.h
	)

source_group (
	"CrimsonMotion"
	FILES
	${CM_SOURCES}
	)


source_group (
	"CrimsonMotion\\physics"
	FILES
	${CM_PHYSICS_SOURCES}
	)

if(WIN32)
add_library (
	CrimsonMotion SHARED
	${CM_SOURCES}
	${CM_PHYSICS_SOURCES}
	)
else()
add_library (
	CrimsonMotion STATIC
	${CM_SOURCES}
	${CM_PHYSICS_SOURCES}
	)
endif()



target_link_libraries (
	CrimsonMotion
	CrimsonEngine
	${BULLET_LIBRARIES}
	)

